//
//  SpeakViewController.h
//  FanXi
//
//  Created by MujiEDU on 15/10/30.
//  Copyright © 2015年 cx. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "ScrollPageDelegate.h"
//#import "VideoModel.h"
#import "MujiDubRecorder.h"
#import "MujiDubModeViewController.h"

@class ISEParams;
//@class VideoDetailModel;
@class ECSpeechDialogLineAnalysisResult;

@interface MujiDubViewController : MujiDubModeViewController<AVAudioPlayerDelegate>

//@property (nonatomic, strong) VideoModel *model;
@property (nonatomic, copy) NSString   *videoID;
@property (nonatomic, strong) ISEParams *iseParams;
@property (nonatomic, strong) id timeObserver;
@property (nonatomic,strong) NSURL *slowSpeakAudioURL;
@property (readwrite, nonatomic, strong)  MujiDubRecorder *dialogLineRecorder;
//@property (readwrite, nonatomic, strong) ECSpeechDialogLineAnalysisResult *dialogLineAnalysisResult;
@property (nonatomic, strong) AVAudioPlayer *slowSpeakAudioPlayer;

//@property (nonatomic,strong) NSString *dialogId;
//@property (nonatomic,strong) NSString *imageUrl;



- (void)updateStatus;
- (MBProgressHUD *)showRecordHUDWithMode:(NSInteger)mode
                               labelText:(NSString *)labelText
                                animated:(BOOL)animated;

- (void)hideRecordAllHUDsAnimated:(BOOL)animated;
- (void)hideRecordAllHUDsAnimated:(BOOL)animated withDelay:(int)delay;

- (void)showAlertView:(NSString *)message;
-(void)saveLine:(ECSpeechDialogLineAnalysisResult*) curResult avgScore:(NSString*)score;
-(void)showLetterInfoView:(int)index;
-(void)slowPlayVideo:(double) slowSpeakStart   end:(double)slowSpeakEnd;
-(NSString*)getPages;
-(void)playVideo;
-(void)playNextVideo;
-(BOOL)showCompleteView;


- (void)playRecordBtnDidClickedWithScore:(NSString *)score status:(int)status;
- (void)pausePlayRecord;


- (void)autoplayRecordWavWithScore:(NSString *)score;


@end
//static const int32_t kVideoFramesPerSecond = 5;
